/*
let NsScore = "SAVE_SCORE";	//XRA

task ReplaySaveSystem
{
	SetCommonDataEx(NsScore,"VK_SHOT",[]);
	SetCommonDataEx(NsScore,"VK_BOMB",[]);
	SetCommonDataEx(NsScore,"VK_USER",[]);
	SetCommonDataEx(NsScore,"VK_SLOWMOVE",[]);
	SetCommonDataEx(NsScore,"VK_SKIP",[]);
	SetCommonDataEx(NsScore,"VK_UP",[]);
	SetCommonDataEx(NsScore,"VK_DOWN",[]);
	SetCommonDataEx(NsScore,"VK_LEFT",[]);
	SetCommonDataEx(NsScore,"VK_RIGHT",[]);
loop
{
	SetCommonDataEx(NsScore,"VK_SHOT",GetCommonDataDefaultEx(NsScore,"VK_SHOT",[])~[GetKeyState(VK_SHOT)]);
	SetCommonDataEx(NsScore,"VK_BOMB",GetCommonDataDefaultEx(NsScore,"VK_BOMB",[])~[GetKeyState(VK_BOMB)]);
	SetCommonDataEx(NsScore,"VK_USER",GetCommonDataDefaultEx(NsScore,"VK_USER",[])~[GetKeyState(VK_USER)]);
	SetCommonDataEx(NsScore,"VK_SLOWMOVE",GetCommonDataDefaultEx(NsScore,"VK_SLOWMOVE",[])~[GetKeyState(VK_SLOWMOVE)]);
	SetCommonDataEx(NsScore,"VK_SKIP",GetCommonDataDefaultEx(NsScore,"VK_SKIP",[])~[GetKeyState(VK_SKIP)]);
	SetCommonDataEx(NsScore,"VK_UP",GetCommonDataDefaultEx(NsScore,"VK_UP",[])~[GetKeyState(VK_UP)]);
	SetCommonDataEx(NsScore,"VK_DOWN",GetCommonDataDefaultEx(NsScore,"VK_DOWN",[])~[GetKeyState(VK_DOWN)]);
	SetCommonDataEx(NsScore,"VK_LEFT",GetCommonDataDefaultEx(NsScore,"VK_LEFT",[])~[GetKeyState(VK_LEFT)]);
	SetCommonDataEx(NsScore,"VK_RIGHT",GetCommonDataDefaultEx(NsScore,"VK_RIGHT",[])~[GetKeyState(VK_RIGHT)]);
yield;
}
}

let RepKeyUp;
let RepKeyDown;
let RepKeyLeft;
let RepKeyRight;
let RepKeyShot;
let RepKeyBomb;
let RepKeySkip;
let RepKeyUser;
let RepKeySlowmove;

task ReplayLoadSystem
{
	RepKeyShot=GetCommonDataDefaultEx(NsScore,"VK_SHOT",[]);
	RepKeyBomb=GetCommonDataDefaultEx(NsScore,"VK_BOMB",[]);
	RepKeyUser=GetCommonDataDefaultEx(NsScore,"VK_USER",[]);
	RepKeySlowmove=GetCommonDataDefaultEx(NsScore,"VK_SLOWMOVE",[]);
	RepKeySkip=GetCommonDataDefaultEx(NsScore,"VK_SKIP",[]);
	RepKeyUp=GetCommonDataDefaultEx(NsScore,"VK_UP",[]);
	RepKeyDown=GetCommonDataDefaultEx(NsScore,"VK_DOWN",[]);
	RepKeyLeft=GetCommonDataDefaultEx(NsScore,"VK_LEFT",[]);
	RepKeyRight=GetCommonDataDefaultEx(NsScore,"VK_RIGHT",[]);
loop
{
	RepKeyShot=erase(RepKeyShot,0);
	RepKeyBomb=erase(RepKeyBomb,0);
	RepKeyUser=erase(RepKeyUser,0);
	RepKeySlowmove=erase(RepKeySlowmove,0);
	RepKeySkip=erase(RepKeySkip,0);
	RepKeyUp=erase(RepKeyUp,0);
	RepKeyDown=erase(RepKeyDown,0);
	RepKeyLeft=erase(RepKeyLeft,0);
	RepKeyRight=erase(RepKeyRight,0);
yield;
}
}

task ReplayMove
{
let speed=0;
loop
{
	if(GetKeyState(VK_SLOWMOVE)==KEY_PUSH || GetKeyState(VK_SLOWMOVE)==KEY_HOLD)
	{
		speed=GetPlayerInfo(PLAYER_SPEED_LOW);
	}
	else
	{
		speed=GetPlayerInfo(PLAYER_SPEED_HIGH);
	}
	if(RepKeyLeft[0]==KEY_PUSH || RepKeyLeft[0]==KEY_HOLD)
	{
		if(RepKeyUp[0]==KEY_PUSH || RepKeyUp[0]==KEY_HOLD)
		{
			SetX(GetPlayerX-speed/(2^0.5));
			SetY(GetPlayerY-speed/(2^0.5));
		}
		else if(RepKeyDown[0]==KEY_PUSH || RepKeyDown[0]==KEY_HOLD)
		{
			SetX(GetPlayerX-speed/(2^0.5));
			SetY(GetPlayerY+speed/(2^0.5));
		}
		else
		{
			SetX(GetPlayerX-speed);
		}
	}
	else if(RepKeyRight[0]==KEY_PUSH || RepKeyRight[0]==KEY_HOLD)
	{
		if(RepKeyUp[0]==KEY_PUSH || RepKeyUp[0]==KEY_HOLD)
		{
			SetX(GetPlayerX+speed/(2^0.5));
			SetY(GetPlayerY-speed/(2^0.5));
		}
		else if(RepKeyDown[0]==KEY_PUSH || RepKeyDown[0]==KEY_HOLD)
		{
			SetX(GetPlayerX+speed/(2^0.5));
			SetY(GetPlayerY+speed/(2^0.5));
		}
		else
		{
			SetX(GetPlayerX+speed);
		}
	}
	else if(RepKeyUp[0]==KEY_PUSH || RepKeyUp[0]==KEY_HOLD)
	{
		SetY(GetPlayerY-speed);
	}
	else if(RepKeyDown[0]==KEY_PUSH || RepKeyDown[0]==KEY_HOLD)
	{
		SetY(GetPlayerY+speed);
	}
yield;
}
}
*/